package day20171031;

public class Point {
    int x,y;
    Point(){
        this(-1,-1);
    }
    Point(int a,int b){x=a;y=b;}
    void showxy() {
        System.out.println("x="+x+"y="+y );
    }
}
class reloadingExample{
    public static void main(String[] args) {
        Point a=new Point();
        Point b=new Point(1,1);
        a.showxy();
        b.showxy();
    }
}
